﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Linq;
using System.Collections;

namespace WebHoiChoMuaBan.Models
{
    public class MemberList
    {
        private IList<Member> members;
        private int totalPages;
        private int currentPage;

        public int CurrentPage
        {
            get { return currentPage; }
            set { currentPage = value; }
        }

        public IList<Member> Members
        {
            get { return members; }
            set { members = value; }
        }

        public void Add(Member member)
        {
            this.members.Add(member);
        }

        public int TotalPages
        {
            get { return totalPages; }
            set { totalPages = value; }
        }

        public MemberList(int totalPages)
        {
            this.totalPages = totalPages;
            this.members = new List<Member>();
        }
    }
}